﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="en-us" http-equiv="Content-Language">
    <title></title>
    @Styles.Render("~/Content/" + LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Theme + "/css")
    @Scripts.Render("~/scripts/js")



    <script type="text/javascript">
        function _closewm(result)
        {
            window.parent.CloseWin(result, '@ViewBag.id');
        }


        $(document).ready(function () {
            if ('@ViewBag.OK' != '0') {
                document.getElementById("btnOK").style.display = "inline-block";
                document.getElementById("imageMesage").src = "@Html.BaseUrl()Content/images/info.png";
                $("#btnOK").focus();
            }

            if ('@ViewBag.YES' != '0') {
                document.getElementById("btnYES").style.display = "inline-block";
                document.getElementById("imageMesage").src = "@Html.BaseUrl()Content/images/question.png";
                $("#btnYES").focus();
            }

            if ('@ViewBag.NO' != '0') {
                document.getElementById("btnNO").style.display = "inline-block";
                document.getElementById("imageMesage").src = "@Html.BaseUrl()Content/images/question.png";
                $("#btnNO").focus();
            }

            if ('@ViewBag.CANCEL' != '0') {
                document.getElementById("btnCANCEL").style.display = "inline-block";
                document.getElementById("imageMesage").src = "@Html.BaseUrl()Content/images/question.png";
                $("#btnCANCEL").focus();
            }

            var message = document.getElementById('messagetext');
            message.innerHTML = '@ViewBag.MESSAGE';
        });
    </script>

    <style type="text/css">
    body
    {
        background: #fff;
        font-family: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Font;
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FontSize;
        color: #666666;
        margin: 0;
        padding: 0;
        overflow:hidden;


    }

    .ModuleTitle 
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ModuleTitleSize();
    }

    .ModuleTitleLeft
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ModuleTitleSize();
    }

    .GroupTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.GroupTitleSize();
    }
        
    .mtitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FormTitle();
        padding-left: 10px;
        padding-top: 10px;
        color: #0000FF;
        clear: both;
    }

    .ApplicationTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ApplicationTitle();
    }

    .buttons button {
	    font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FontSize;
    }
        
    </style>
</head>
<body>
<div>
    <div style="float: left; width: 80px; height:70px; vertical-align: middle; text-align: center;" >       
		<img id="imageMesage" src ="@Html.BaseUrl()Content/images/info.png" style="width: 48px; height: 48px; margin-top:0px" />
    </div>
    <div style="float: inherit; height:70px" >
<table style="height: 70px;">
<tr>
		
<td style="width: 300px; vertical-align:top" id="messagetext"></td></tr></table>
    </div>
    </div>

<div class="Line"></div>
    
<div  style="text-align:right">
    <div class='buttons'> 
		<button class='positive' id="btnOK" style="display:none" onclick="_closewm('OK')">
             <img src='@Html.BaseUrl()Content/images/ok.png' alt='' />OK
		</button>
		<button class='positive' id="btnYES" style="display:none"  onclick="_closewm('YES')">
             <img src='@Html.BaseUrl()Content/images/ok.png' alt='' />Yes
		</button>
		<button class='positive' id="btnNO" style="display:none"  onclick="_closewm('NO')">
             <img src='@Html.BaseUrl()Content/images/no.png' alt='' />No
		</button>
		<button class='positive' id="btnCANCEL" style="display:none"  onclick="_closewm('CANCEL')">
             <img src='@Html.BaseUrl()Content/images/cancel.png' alt='' />Cancel
		</button>
    </div>
        </div>
    </body>

</html>
